﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.QandA
{
    public class QandAModel : GeneralBase<int>
    {
        /// <summary>
        /// 问题
        /// </summary>
        [Required, StringLength(20)]
        public string Problem { get; set; }

        /// <summary>
        /// 答案
        /// </summary>
        public string Answer { get; set; }

        /// <summary>
        /// 类型编号
        /// </summary>
        public int ProblemTypeID { get; set; }
    }
}
